package org.abratuhi.kvngroupware.pubsub;

public class Pubsubtest {
	
	public static void main(String [] args){
		HubSet hs = new HubSet(new String[]{"height"});
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-100)}, new Value[]{new Value(-99)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-200)}, new Value[]{new Value(-199)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-300)}, new Value[]{new Value(-299)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(100)}, new Value[]{new Value(199)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(200)}, new Value[]{new Value(299)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(300)}, new Value[]{new Value(399)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-100)}, new Value[]{new Value(-99)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-200)}, new Value[]{new Value(-199)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(-300)}, new Value[]{new Value(-299)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(100)}, new Value[]{new Value(199)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(200)}, new Value[]{new Value(299)}));
		hs.addSubscription(new Subscription("subscriber1", new String[]{"height"}, new Value[]{new Value(300)}, new Value[]{new Value(399)}));
		
		System.out.println(hs.toString());
	}

}
